import request from "@/utils/request";
// const BASE_DASHBOARD_URL = "/api/auth";
const BASE_DASHBOARD_FMS = "/api/fms"; //

// 获取用户信息
export const getDashboardInfo = (userBizId: string) => {
  return request<any, any>({
    url: `/api/anchor/info/personalCenter?userBizId=${userBizId}`,
    method: "get",
    // data,
  });
};
//获取合同

// export interface
export interface DepositReq {
  current: number;
  size: number;
  userBizId: string | number;
}

// 获取保证金
export const getDepositInfo = (data: DepositReq) => {
  return request<ApiResponse>({
    url: `${BASE_DASHBOARD_FMS}/creatorFlow/list`,
    method: "post",
    data,
  });
};

/** 获取保证金列表数据 */
export interface ApiResponse {
  userBizId: number;
  current: number;
  size: number;
  depositAmount: number;
  action: string;
  time: string;
  amount: number;
  remark: string;
}
